#[cfg(feature = "color")]
pub mod color {
    pub use rgb::RGB;
    pub fn draw_line(x: i32, y: i32, color: &RGB<u16>) {
        println!(
            "draw line from ({x},{y}) to ({x},{y}) with color {:?}",
            color
        );
    }
}
#[cfg(feature = "shape")]
pub mod shapes {
    use rgb::RGB;
    pub use serde::{Deserialize, Serialize};

    #[derive(Serialize, Deserialize)]
    pub struct Rectangle {
        pub color: RGB<u16>,
        pub width: u16,
        pub height: u16,
    }
}
